﻿<UserControl x:Class="Test.DualWebcam.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Core="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core" 
    xmlns:Media="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Media;assembly=Microsoft.SilverlightMediaFramework.Core" 
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Core:SMFPlayer x:Name="smf" AutoLoad="False">
            <Core:SMFPlayer.Playlist>
                <Media:PlaylistItem DeliveryMethod="NotSpecified" MediaSource="webcam://fake"/>
            </Core:SMFPlayer.Playlist>
        </Core:SMFPlayer>

        <Grid x:Name="StupidStartButton" Background="#bb000000">
            <HyperlinkButton FontSize="33" Foreground="White" Click="Button_Click" Content="Click to start" HorizontalAlignment="Center" VerticalAlignment="Center" />
        </Grid>

        <Grid x:Name="ErrorMessage" Visibility="Collapsed">
            <Grid.Background>
                <SolidColorBrush Color="#66000000" />
            </Grid.Background>
            <TextBlock Text="Sorry, you need 2 webcams for the demo to work." TextWrapping="Wrap" TextAlignment="Center" FontSize="24" Foreground="#BBFFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="24" />
        </Grid>
    </Grid>
</UserControl>
